#include"RoomStateManager.h"

RoomStateBase*RoomStateManager::stateList[]={
        new AssignPFState(),
    new BanState(),
    new PauseState(),
    new PickState(),
    new RoundOverState(),
    new StartState()
};

void RoomStateManager::Start(){
    stateList[curStateIndex]->enter(roomID);
}

void RoomStateManager::NextState(){
    stateList[curStateIndex]->exit(roomID);
    curStateIndex++;
    if(curStateIndex==statequeue.size()){
        DelRoom();
        return;
    }
    stateList[curStateIndex]->enter(roomID);
}

void RoomStateManager::DelRoom(){

}